 /*
  * Copyright (c) 2021, 2023, yishun.cn All rights reserved.
  *
  */
 package cn.shun.mapper;

 import cn.shun.entity.Book;
 import org.apache.ibatis.annotations.Mapper;
 import org.apache.ibatis.annotations.Param;
 import org.apache.ibatis.annotations.Select;

 import java.util.List;
 import java.util.Map;

 /**
  * <p>Project: MyBatis2023 - BookMapper
  * <p>Powered by yishun On 2023-01-31 15:00:36
  *
  * @author yishun [2465734101@qq.com]
  * @version 1.0
  * @since 17
  */
 @Mapper
 public interface BookMapper {
     @Select("select * from book order by id")
     List<Book> queryAll();

     //统计记录数
     int count();

     int count(String w);

     List<Map<String, Object>> queryPageBy();
     List<Map<String, Object>> queryPageBy(Map<String,Object> map);



     //测试MyPage分页插件
     List<Book> selectPage();

 }
